/**
 * jims
 */
package com.jims.master.modules.patient.RecordUpload.service;


import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;
import com.jims.master.modules.patient.RecordUpload.dao.RecordUploadDao;
import com.jims.master.modules.patient.RecordUpload.entity.RecordUpload;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 病历报告表Service
 * @author jct
 * @version 2017-12-08
 */
@Service
@Transactional(readOnly = true)
public class RecordUploadService extends CrudService<RecordUploadDao, RecordUpload> {
	@Override
	public RecordUpload get(String id) {
		return super.get(id);
	}
	@Override
	public List<RecordUpload> findList(RecordUpload recordUpload) {
		return super.findList(recordUpload);
	}
	@Override
	public Page<RecordUpload> findPage(Page<RecordUpload> page, RecordUpload recordUpload) {
		return super.findPage(page, recordUpload);
	}
	
	@Transactional(readOnly = false)
	@Override
	public int save(RecordUpload recordUpload) {
		return super.save(recordUpload);
	}
	
	@Transactional(readOnly = false)
	@Override
	public int delete(RecordUpload recordUpload) {
		return super.delete(recordUpload);
	}
	@Transactional(readOnly = false)
	public int updatePublic(String state,String id) {
		return dao.updatePublic(state,id);
	}
	
}